package com.ffcs.crmd.tsp.server.jdbc.entity;

/**
 * 
 * 功能说明:执行端注册信息实体类
 *
 * @author FFCS-ZHONGFUHUA
 * 
 * @since 1.0.0-SNAPSHOT
 *
 */
public class JobIdentityInfo {
    
    /**
     * 主键
     */
    private Long    id;
    
    /**
     * 标识
     */
    private String  identity;
    
    /**
     * 集群名称
     */
    private String  clusterName;
    
    /**
     * 
     */
    private String  description;
    
    /**
     * 任务ID
     */
    private Long    jobId;
    
    /**
     * 执行端标识ID
     */
    private Long    taskIdentityId;
    
    /**
     * 
     */
    private Integer pageSize;
    
    /**
     * 
     */
    private Integer pageNumber;
    
    /**
     * 功能说明: 获取主键
     *
     * @return id 主键
     */
    public Long getId() {
        return id;
    }
    
    /**
     * 功能说明: 设置主键
     *
     * @param id 主键 
     */
    public void setId(Long id) {
        this.id = id;
    }
    
    /**
     * 功能说明: 获取标识
     *
     * @return identity 标识
     */
    public String getIdentity() {
        return identity;
    }
    
    /**
     * 功能说明: 设置标识
     *
     * @param identity 标识 
     */
    public void setIdentity(String identity) {
        this.identity = identity;
    }
    
    /**
     * 功能说明: 获取任务ID
     *
     * @return jobId 任务ID
     */
    public Long getJobId() {
        return jobId;
    }
    
    /**
     * 功能说明: 设置任务ID
     *
     * @param jobId 任务ID 
     */
    public void setJobId(Long jobId) {
        this.jobId = jobId;
    }
    
    /**
     * 功能说明: 获取集群名称
     *
     * @return clusterName 集群名称
     */
    public String getClusterName() {
        return clusterName;
    }
    
    /**
     * 功能说明: 设置集群名称
     *
     * @param clusterName 集群名称 
     */
    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }
    
    /**
     * 功能说明: 获取
     *
     * @return description 
     */
    public String getDescription() {
        return description;
    }
    
    /**
     * 功能说明: 设置
     *
     * @param long1  
     */
    public void setDescription(String description) {
        this.description = description;
    }
    
    /**
     * 功能说明: 获取执行端标识ID
     *
     * @return taskIdentityId 执行端标识ID
     */
    public Long getTaskIdentityId() {
        return taskIdentityId;
    }
    
    /**
     * 功能说明: 设置执行端标识ID
     *
     * @param taskIdentityId 执行端标识ID 
     */
    public void setTaskIdentityId(Long taskIdentityId) {
        this.taskIdentityId = taskIdentityId;
    }
    
    /**
     * 功能说明: 获取
     *
     * @return pageSize 
     */
    public Integer getPageSize() {
        return pageSize;
    }
    
    /**
     * 功能说明: 设置
     *
     * @param pageSize  
     */
    public void setPageSize(Integer pageSize) {
        if (pageSize < 0) {
            this.pageSize = 0;
        } else {
            this.pageSize = pageSize;
        }
    }
    
    /**
     * 功能说明: 获取
     *
     * @return pageNumber 
     */
    public Integer getPageNumber() {
        return pageNumber;
    }
    
    /**
     * 功能说明: 设置
     *
     * @param pageNumber  
     */
    public void setPageNumber(Integer pageNumber) {
        if (pageNumber < 0) {
            this.pageNumber = 1;
        } else {
            this.pageNumber = pageNumber;
        }
    }
    
    /**
     * 功能说明:
     * 
     * @return
     */
    @Override
    public String toString() {
        return "JobIdentityInfo [id=" + id + ", identity=" + identity + ", clusterName=" + clusterName + ", description=" + description
            + ", jobId=" + jobId + ", taskIdentityId=" + taskIdentityId + ", pageSize=" + pageSize + ", pageNumber=" + pageNumber + "]";
    }
    
}
